﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using Nana.Web.SSIHandler;

namespace Nana.Web.SSIHandler
{
  /// <summary>
  /// AutoDetectSSIHandler 的摘要说明
  /// </summary>
  public class AutoDetectSSIHandler : IHttpHandler
  {
    public void ProcessRequest(HttpContext context)
    {
      try
      {
        context.GetAutoDelegate()
          (context.Response.Output);
      }
      catch
      {
        context.Response.StatusCode = 500;
      }
    }

    public bool IsReusable
    {
      get
      {
        return true;
      }
    }
  }
}